package org.demo.patten.facade;

/**
 * @author zhuj
 * @date 2025/3/22
 * @apiNote
 */
public class HomeTheaterFacade {
    private Light light;
    private Curtain curtain;
    private Projector projector;
    private AirConditioner ac;
    public HomeTheaterFacade() {
        this.light = new Light();
        this.curtain = new Curtain();
        this.projector = new Projector();
        this.ac = new AirConditioner();
    }
    public void startMovieMode() {
        light.off();
        curtain.down();
        projector.on();
        ac.setTemperature(23);
        System.out.println("【影院模式已启动】");
    }
}
